/*
 * ConfigForm
 * 
 * Version information
 * 
 * Apr 8, 2006
 * 
 * Copyright (c) AmSoft Systems, 2006
 */
package net.amsoft.iservice.icontact.webapp.struts.form;

import org.apache.struts.action.ActionForm;

@SuppressWarnings("serial")
public class ConfigForm extends ActionForm {

    private String sDisplayName = "";
    private String sDisplayMsg = "";
    private String sVerificationType = "0";
    private String sVerificationEmailSub = "";
    private String sVerificationEmailMsg = "";
    private String sNotificationEmailSub = "";
    private String sNotificationEmailMsg = "";
    private String sTags = "";
    private String sType = "deactivated";
    private String sSynonym = "";
    private String sEmailAddresses = "";
    private String sSameAsSynonyms = "";

    public String getDisplayMsg() {
        return sDisplayMsg;
    }

    public void setDisplayMsg(String displayMsg) {
        if (displayMsg != null) {
            //XSS protection: replaces < and > with HTML quivalents codes
            displayMsg = displayMsg.replaceAll("<", "&lt;").replaceAll(">",
                    "&gt;");
            displayMsg = displayMsg.trim();
        }
        this.sDisplayMsg = displayMsg;
    }

    public String getDisplayName() {
        return sDisplayName;
    }

    public void setDisplayName(String displayName) {
        if (displayName != null)
            displayName = displayName.trim();
        this.sDisplayName = displayName;
    }

    public String getNotificationEmailMsg() {
        return sNotificationEmailMsg;
    }

    public void setNotificationEmailMsg(String notificationEmailMsg) {
        if (notificationEmailMsg != null)
            notificationEmailMsg = notificationEmailMsg.trim();
        this.sNotificationEmailMsg = notificationEmailMsg;
    }

    public String getNotificationEmailSub() {
        return sNotificationEmailSub;
    }

    public void setNotificationEmailSub(String notificationEmailSub) {
        if (notificationEmailSub != null)
            notificationEmailSub = notificationEmailSub.trim();
        this.sNotificationEmailSub = notificationEmailSub;
    }

    public String getTags() {
        return sTags;
    }

    public void setTags(String tags) {
        if (tags != null)
            tags = tags.trim();
        this.sTags = tags;
    }

    public String getVerificationEmailMsg() {
        return sVerificationEmailMsg;
    }

    public void setVerificationEmailMsg(String verificationEmailMsg) {
        if (verificationEmailMsg != null)
            verificationEmailMsg = verificationEmailMsg.trim();
        this.sVerificationEmailMsg = verificationEmailMsg;
    }

    public String getVerificationEmailSub() {
        return sVerificationEmailSub;
    }

    public void setVerificationEmailSub(String verificationEmailSub) {
        if (verificationEmailSub != null)
            verificationEmailSub = verificationEmailSub.trim();
        this.sVerificationEmailSub = verificationEmailSub;
    }

    public String getVerificationType() {
        return sVerificationType;
    }

    public void setVerificationType(String verificationType) {
        this.sVerificationType = verificationType;
    }

    public String getType() {
        return sType;
    }

    public void setType(String type) {
        sType = type;
    }

    public String getSynonym() {
        return sSynonym;
    }

    public void setSynonym(String synonym) {
        this.sSynonym = synonym;
    }

    public String getEmailAddresses() {
        return sEmailAddresses;
    }

    public void setEmailAddresses(String emailAddresses) {
        if (emailAddresses != null)
            emailAddresses = emailAddresses.trim();
        sEmailAddresses = emailAddresses;
    }

    public String getSameAsSynonyms() {
        return sSameAsSynonyms;
    }

    public void setSameAsSynonyms(String synonyms) {
        sSameAsSynonyms = synonyms;
    }
}
